7d48f65a17bb65affffa9c2e049f292c491ee8bf,core-ng/src/main/java/core/framework/impl/inject/BeanFactory.java,BeanFactory,create,#Class#,56

Before Change


            inject(instance);
            return instance;
        } catch (IllegalAccessException | InstantiationException | InvocationTargetException | RuntimeException e) {
            throw new Error("failed to build bean, instanceClass=" + instanceClass + ", error=" + e.getMessage(), e);
        }
    }

After Change


            inject(instance);
            return instance;
        } catch (IllegalAccessException | InstantiationException | InvocationTargetException | RuntimeException e) {
            throw Exceptions.error("failed to create bean, instanceClass={}, error={}", instanceClass, e.getMessage(), e);
        }
    }